import { h, render } from 'vue'
import BackToTop from '@/components/BackToTop.vue'

export default {
    install(app) {
        const container = document.createElement('div')
        document.body.appendChild(container)

        const vnode = h(BackToTop, {
            threshold: 300,
            duration: 600,
            right: '24px',
            bottom: '48px',
        })

        render(vnode, container)
    }
}
